import * as dayjs from "dayjs";
const WEEK_MAP = ["日", "一", "二", "三", "四", "五", "六"];
/**
 * @description: 获取当前日期，时间，周
 * @return {*}
 */
export function getCurrent() {
  const nowDay = dayjs();
  return {
    date: nowDay.format("YYYY年MM月DD日"),
    time: nowDay.format("HH:mm"),
    week: `星期${WEEK_MAP[nowDay.day()]}`,
  };
}
